package action.iterator;

import java.util.List;

public class ConcreteAggregate<T> extends Aggregate{
    //集合放在基类的容器中
    public ConcreteAggregate(List<T> list) {
        super(list);
    }

    @Override
    Iterator createIterator() {
        return new ConcreteIterator<T>(getList());
    }
}
